﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface ICity {

        /// <summary>
        /// Insert new CityEnt
        /// </summary>
        /// <param name="item">CityEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(CityEnt item);
        /// <summary>
        /// Update CityEnt
        /// </summary>
        /// <param name="item">CityEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(CityEnt item);
        /// <summary>
        /// Delete a CityEnt
        /// </summary>
        /// <param name="iD">ID of CityEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all CityEnt
        /// </summary>
        /// <returns>return a list of CityEnt (empty list if no CityEnt exists)</returns>
        List<CityEnt> GetAll();
    }
}
